home *** CD-ROM | disk | FTP | other *** search
- pos = new Array();
- n = 1;
- while(n <= 6)
- {
- pos[n] = eval(n)._x;
- n++;
- }
- this.onEnterFrame = function()
- {
- n = 1;
- while(n <= 6)
- {
- if(eval(n).hitTest(_root._xmouse,_root._ymouse,true))
- {
- eval(n)._x += Math.ceil((pos[n] + 10 - eval(n)._x) / 10);
- }
- else
- {
- eval(n)._x += Math.floor((pos[n] - eval(n)._x) / 10);
- }
- n++;
- }
- };
- if(_root.screen == _parent.screen)
- {
- stop();
- _root.front[4].choice.gotoAndStop("back");
- }
-